import numpy as np
import matplotlib.pyplot as p
#import numpy

class CLS_ViewPlotData():

	def funcViewPlotData(self, 
		strTitlePlot, inListNameX, 
		inValueX, inListNameY, 
		inValueY, inLabelY
		):

		self.strTitlePlot = strTitlePlot
		self.listNameX = inListNameX
		self.ValueX = inValueX
		self.ListnameY = inListNameY
		self.ValueY = inValueY
		self.labelY = inLabelY

		fig = p.figure()
		axisXY = fig.add_subplot(1,1,1)
		 
		barQuant = len(self.ValueY)
		 
		ind = range(barQuant)
		 
		#err = [1.2, 1.5, 2.5, 1.2, 2.0]
		#a = numpy.std(self.ValueY)
		err = [x for x in range(1, len(self.ValueY)+1, 1)] 
		axisXY.bar(ind, self.ValueY, facecolor = '#777777', align = 'center', yerr = err, ecolor = 'black')
		 
		axisXY.set_ylabel(self.labelY)
		 
		axisXY.set_title(self.strTitlePlot, fontstyle = 'italic')
		 
		axisXY.set_xticks(ind)

		axisXY.set_xticklabels(self.listNameX)
		 
		fig.autofmt_xdate()
		
		#p.savefig('Data/PNG.png')

		p.show()
